package com.manager;

import com.dao.UserDao;

public class UserManagerImpl implements UserManager{
	//定义一个成员变量，使用构造方式赋值  
    private UserDao userDao;  
//    public UserManagerImpl(UserDao userDao) {  
//        this.userDao = userDao;  
//    }  
	@Override
	public void addUser(String userName, String password) {
		 userDao.addUser(userName, password);
	}
	public UserDao getUserDao() {
		return userDao;
	}
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}
	
}
